
<div class="row">
    <div class="medium-12 column" style="padding:0;">
        <div class="admenu medium-2 column">
           <!-- <div class="medium-12 column" style="border-bottom:solid 5px #EDEDED;">
                <div class="adimg medium-12 column">
                    
                </div>
            </div> -->
            <div class="dash-side medium-12 column" style="padding:0;">
                <ul class="">
                    <li class="<?php if(@$page_name=='dashboardAdmin') { echo "active";} ?>">
                        <a href="<?=BASE_URI?>admin/dashboard"><i class="fa fa-dashboard"></i> Dashboard</a>
                    </li>
                    <li class="<?php if(@$page_name=='postAdmin') { echo "active";} ?>">
                        <a href="<?=BASE_URI?>admin/post"><i class="fa fa-edit"></i> Post</a>
                    </li>
                    <li class="<?php if(@$page_name=='adminCompany') { echo "active";} ?>">
                        <a href="<?=BASE_URI?>admin/company"><i class="fa fa-building "></i> Company</a>
                    </li>
                    <li class="<?php if(@$page_name=='groupdAdmin') { echo "active";} ?>">
                        <a href="<?=BASE_URI?>admin/group"><i class="fa fa-group"></i> Group</a>
                    </li>
                    <?php if($admin_info->modify == "on") { ?> 
                    <li class="<?php if(@$page_name=='usersAdmin') { echo "active";} ?>">
                        <a href="<?=BASE_URI?>admin/users"><i class="fa fa-user"></i> Users</a>
                    </li>
                    <?php }?>
                    <li class="<?php if(@$page_name=='forumAdmin') { echo "active";} ?>">
                        <a href="<?=BASE_URI?>admin/forum"><i class="fa fa-thumb-tack"></i> Forum</a>
                    </li>
                    <li>
                        <a href="<?=BASE_URI?>admin/logout"><i class="fa fa-thumb-tack"></i> Logout</a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="adside medium-10 column">

            <?php
                if(@$page_name=='dashboardAdmin')
                    {
                         $this->view->partial('admin/dashboard');
                    }
                if(@$page_name=='postAdmin')
                    {
                         $this->view->partial('admin/post');
                    }
                if((@$page_name=='adminCompany')||(@$page_name=='newCompany')||(@$page_name=='pendingCompany')||                       (@$page_name=='suspendedCompany')||(@$page_name=='reportedCompany')||(@$page_name=='suggestedEdits'))
                    {
                         $this->view->partial('admin/company');
                    }
                if(@$page_name=='groupAdmin')
                    {
                         $this->view->partial('admin/group');
                    }
                if(@$page_name=='usersAdmin')
                    {
                         $this->view->partial('admin/users');
                    }
                if(@$page_name=='forumAdmin')
                    {
                         $this->view->partial('admin/forum');
                    }
            ?>
        </div>
    </div>
</div>
